# Define here the models for your scraped items
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/items.html

import scrapy


class CrawlspiderdemoItem(scrapy.Item):
    # define the fields for your item here like:
    # name = scrapy.Field()
    pass


# 定义图书数据建模
class BookItem(scrapy.Item):
    # 大分类名字
    b_cate = scrapy.Field()
    # 小分类名字
    s_cate = scrapy.Field()
    # 小分类url地址
    s_href = scrapy.Field()
    # 图书名字
    book_name = scrapy.Field()
    # 图片的url地址
    book_img_url = scrapy.Field()
    # 作者
    book_author = scrapy.Field()
    # 出版日期
    book_pub_date = scrapy.Field()
    # 出版社
    book_publisher = scrapy.Field()
    # 价格
    book_price = scrapy.Field()
    # 折扣
    book_discount = scrapy.Field()
    # 定价
    book_pricing = scrapy.Field()
    # 描述信息
    book_desc = scrapy.Field()
